//
//  UserPresenter.h
//  MVPTableViewDemo
//
//  Created by 胡锦涛 on 2019/1/27.
//  Copyright © 2019 胡锦涛. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"

NS_ASSUME_NONNULL_BEGIN
@protocol UserViewDelegate <NSObject>

- (void)startLoading;
- (void)finishLoading;

///用户界面的数据
- (void)setUsers:(NSArray<User *> *)userViewData;
///数据是空的时候显示
- (void)setEmptyUsers;
@end

@interface UserPresenter : NSObject
@property (nonatomic, weak) id<UserViewDelegate> delegate ;
- (void)getUsers;
@end

NS_ASSUME_NONNULL_END
